package ar.com.coonocer.joy.stdalone;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

import ar.com.coonocer.joy.mdg.util.Generator;

public class TestGenerateTables2Entities {

	public static void main(String[] args) throws FileNotFoundException, IOException {
		File xmiFile = new File("../Resources/SampleProjects/Tables2Entities/DataModel.xmi");
		//
		File templateFolder = new File("../Templates/CRUDs/Tables2Entities");
		//
		File destinationFolder = new File("../Resources/SampleProjects/Tables2Entities/output");
		//
		Properties settings = new Properties();
		settings.load(new FileInputStream("/j-oy.properties"));
		//
		Generator.generate(xmiFile, templateFolder, destinationFolder, settings);
	}

}
